﻿@model Grand.Web.Models.PushNotifications.PublicInfoModel

@{
    Html.AddScriptParts(ResourceLocation.Footer, "https://www.gstatic.com/firebasejs/4.12.1/firebase.js", excludeFromBundle: true);
    Html.AddScriptParts(ResourceLocation.Footer, "~/scripts/jquery.push.notifications.js");
}

<script asp-location="Footer">
    $(document).ready(function () {
        PushNotifications.init("@Model.PublicApiKey", "@Model.SenderId", "@Model.ProjectId", "@Model.AuthDomain", "@Model.StorageBucket",
            "@Model.DatabaseUrl", "@Url.Action("ProcessRegistration", "PushNotifications")");
        PushNotifications.process();
    });
</script>